#ifndef SPLASHPROGRESSBAR_H
#define SPLASHPROGRESSBAR_H

#include<QSplashScreen>
#include<QProgressBar>
#include<QPushButton>
#include<QTimerEvent>
class SplashProgressBar:public QSplashScreen
{
    Q_OBJECT
public:
    SplashProgressBar(int time,QProgressBar* pb,QPushButton *btn);
    ~SplashProgressBar();
    void  updateprogressbar();
    void  generateNumber();

protected:
   void timerEvent(QTimerEvent* event) override;
private:
    int m_time;
    QPushButton *m_btn;
    QProgressBar *m_pb;
    QList<int> m_num;
    int  m_elapseime;
};

#endif // SPLASHPROGRESSBAR_H
